// Copyright (c) 2019 Presto Labs Pte. Ltd.
// Author: jaewon

#include <cstdio>

#include <pybind11/pybind11.h>

int add(int i, int j) {
  printf("%d + %d = %d\n", i, j, i + j);
  return i + j;
}

PYBIND11_MODULE(example, m) {
  m.doc() = "pybind11 example plugin";  // optional module docstring
  m.def("add", &add, "A function which adds two numbers");
}
